<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="Utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>体格检查</title>
<link href="${ctx}/js/validate/jquery.validate.css" type="text/css" rel="stylesheet"/>
<link href="${ctx}/css/layout.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" charset="utf-8" src="${ctx}/My97DatePicker/WdatePicker.js"></script>
<script src="${ctx}/js/jquery.js" type="text/javascript"></script>
<script src="${ctx}/js/clinic/physical.js" type="text/javascript"></script>
<script src="${ctx}/js/validate/jquery.validate.js" type="text/javascript"></script>
<script src="${ctx}/js/validate/messages_cn.js" type="text/javascript"></script>
<script type="text/javascript">
//体格检查模块验证
$(document).ready(function(){
	$("#bodyWeightIndex").focus();
	//为inputForm注册validate函数
	$("#phyInputForm").validate({
		rules: {
			bodyWeightIndex:{
				required: true
			},
			systolicPressure:{
				required: true
			},
			bodyWeight:{
				required: true
			},
			examDate:{
				required: true
			},
			diastolicPressure:{
				required: true
			}
		}

	});
	
	
});
</script>
</head>
<body bgcolor="#E5E5E5">
<form action="physical!save.action" method="post" id="phyInputForm">
<div id="message"><s:actionmessage theme="mytheme" cssClass="success"/></div>
<table>
<tr>
<td><label>体重指数:</label><input type="text" id="bodyWeightIndexId" name="bodyWeightIndex" value="${bodyWeightIndex}" size="12"></td>
<td><label>收缩压:</label><input type="text" name="systolicPressure" value="${systolicPressure}" size="12"></td>
<td><label>体重:</label><input type="text" name="bodyWeight" value="${bodyWeight}" size="12"></td>
</tr>

<tr>
<td><label>检查时间:</label><input type="text" name="examDate" id="examDateId" value="${examDate}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',el:'examDateId'})"size="12">

</td>
<td  colspan="2"><label>舒张压:</label><input type="text" name="diastolicPressure" value="${diastolicPressure}" size="12"></td>
</tr>
</table>

<div align="right">
<input type="button" id="bc" value="保存" onclick="save()"/>
<s:reset  name="" id="bc" value="取消" theme="simple" cssStyle="width:100px"/>

</div>
</form>
</body>
</html>